{erl_opts, [debug_info]}.

{pre_hooks,
  [{"(linux|darwin|solaris)", compile, "make build-nif"}
  ]}.

{deps, [{snabbkaffe, "1.0.1"}
       ]}.

{profiles,
 [ {test,
    [{erl_opts, [{d, 'SNK_COLLECTOR'}]}]}
 , {doc,
    [{plugins, [rebar3_hex, rebar3_ex_doc]},
     {ex_doc, [
               {extras, [ "README.md"
                        , "LICENSE"
                        , "docs/messages_to_owner.md"
                        , "docs/Terminology.md"
                        , "docs/DesignDecisions.md"
                        ]},
               {main, "README.md"},
               {source_url, "https://github.com/emqx/quic"}
              ]}
    ]}
 ]
}.

{relx, [{release, {quicer, git},
         [quicer]},
        {dev_mode, true},
        {include_erts, false},
        {extended_start_script, true}]}.


%% Coveralls
{plugins                , [coveralls]}. % use hex package
{cover_enabled          , true}.
{cover_export_enabled   , true}.
{coveralls_coverdata    , "_build/test/cover/ct.coverdata"}. % or a string with wildcards or a list of files
{coveralls_service_name , "github"}.
{coveralls_parallel, true}.
